package com.mars.boss.weixin.exception;

import com.mars.common.exception.BizException;

public class WeixinBizException extends BizException {

	private static final long serialVersionUID = 1L;
	

	/**
	 * 父节点不能关联自己
	 */
	public static final WeixinBizException WEIXIN_EXCEPTION = new WeixinBizException(10020114, " 微信异常");
	
	public WeixinBizException() {
	}

	public WeixinBizException(int code, String msg) {
		super(code, msg);
	}
	
	public WeixinBizException(String msgFormat, Object... args) {
		super(msgFormat, args);
	}
	
	public WeixinBizException(int code, String msgFormat, Object... args) {
		super(code, msgFormat, args);
	}
	
	
	public WeixinBizException newInstance(String msgFormat, Object... args) {
		return new WeixinBizException(this.code, msgFormat, args);
	}
	
	public WeixinBizException logInfo() {
		logger.info("==>MenuBizException, code:" + this.code + ", msg:" + this.msg);
		return new WeixinBizException(this.code, this.msg);
	}
	

}
